import http from '@/request'
import qs from 'qs'

export const MenuList=(params:any,id:number|undefined):TRes<IMenu>=>http.get(`/menu/list/${id}`,{params})
// 修改菜单显示状态
export const MenuUpdateHidden=(id:number,params:IHidden):TRes<number>=>http.post(`/menu/updateHidden/${id}`,qs.stringify(params))